<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>pyzy: PyZy::InputContext::Observer Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pyzy
   &#160;<span id="projectnumber">0.0.8</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacePyZy.html">PyZy</a>      </li>
      <li class="navelem"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a>      </li>
      <li class="navelem"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html">Observer</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">PyZy::InputContext::Observer Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="PyZy::InputContext::Observer" -->
<p><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html" title="Observer class of the InputContext.">Observer</a> class of the <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a>.  
 <a href="classPyZy_1_1InputContext_1_1Observer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="InputContext_8h_source.html">InputContext.h</a>&gt;</code></p>

<p><a href="classPyZy_1_1InputContext_1_1Observer-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a522e5f1ff9f4b1175b0f3c858b2b2711">commitText</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context, const std::string &amp;commit_text)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies a commit text.  <a href="#a522e5f1ff9f4b1175b0f3c858b2b2711"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a878761237316a954d67c91e7ae989066">inputTextChanged</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies input text is changed.  <a href="#a878761237316a954d67c91e7ae989066"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#ab414e644cbe27776d5b07f8af205fcbc">cursorChanged</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies cursor is changed.  <a href="#ab414e644cbe27776d5b07f8af205fcbc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#abddbbbf9e8a7cbc5e4c6ee0a44ec2b81">preeditTextChanged</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies preedit text is changed.  <a href="#abddbbbf9e8a7cbc5e4c6ee0a44ec2b81"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a64be531d083aa77077ea32e3c886fdf8">auxiliaryTextChanged</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies auxiliary text is changed.  <a href="#a64be531d083aa77077ea32e3c886fdf8"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#afd5b1b00a46d29f9f62b7d82d7bb4112">candidatesChanged</a> (<a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *context)=0</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Notifies candidates are changed.  <a href="#afd5b1b00a46d29f9f62b7d82d7bb4112"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classPyZy_1_1InputContext_1_1Observer.html" title="Observer class of the InputContext.">Observer</a> class of the <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a>. </p>
<p>You override this class and pass it to <a class="el" href="classPyZy_1_1InputContext.html#adf0f3aea2c16b5cf5838edec46444e27" title="Creates a new InputContext instance.">InputContext::create</a>, and you can get a nortification as a callback through this instance when some context are modified. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a64be531d083aa77077ea32e3c886fdf8"></a><!-- doxytag: member="PyZy::InputContext::Observer::auxiliaryTextChanged" ref="a64be531d083aa77077ea32e3c886fdf8" args="(InputContext *context)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a64be531d083aa77077ea32e3c886fdf8">PyZy::InputContext::Observer::auxiliaryTextChanged</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies auxiliary text is changed. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when auxiliary text is changed. </p>

</div>
</div>
<a class="anchor" id="afd5b1b00a46d29f9f62b7d82d7bb4112"></a><!-- doxytag: member="PyZy::InputContext::Observer::candidatesChanged" ref="afd5b1b00a46d29f9f62b7d82d7bb4112" args="(InputContext *context)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#afd5b1b00a46d29f9f62b7d82d7bb4112">PyZy::InputContext::Observer::candidatesChanged</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies candidates are changed. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when candidates are changed. </p>

</div>
</div>
<a class="anchor" id="a522e5f1ff9f4b1175b0f3c858b2b2711"></a><!-- doxytag: member="PyZy::InputContext::Observer::commitText" ref="a522e5f1ff9f4b1175b0f3c858b2b2711" args="(InputContext *context, const std::string &amp;commit_text)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a522e5f1ff9f4b1175b0f3c858b2b2711">PyZy::InputContext::Observer::commitText</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>commit_text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies a commit text. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method. </td></tr>
    <tr><td class="paramname">commit_text</td><td>Commited text.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when conversion result is commited. </p>

</div>
</div>
<a class="anchor" id="ab414e644cbe27776d5b07f8af205fcbc"></a><!-- doxytag: member="PyZy::InputContext::Observer::cursorChanged" ref="ab414e644cbe27776d5b07f8af205fcbc" args="(InputContext *context)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#ab414e644cbe27776d5b07f8af205fcbc">PyZy::InputContext::Observer::cursorChanged</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies cursor is changed. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when cursor is changed. </p>

</div>
</div>
<a class="anchor" id="a878761237316a954d67c91e7ae989066"></a><!-- doxytag: member="PyZy::InputContext::Observer::inputTextChanged" ref="a878761237316a954d67c91e7ae989066" args="(InputContext *context)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#a878761237316a954d67c91e7ae989066">PyZy::InputContext::Observer::inputTextChanged</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies input text is changed. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when input text is changed. </p>

</div>
</div>
<a class="anchor" id="abddbbbf9e8a7cbc5e4c6ee0a44ec2b81"></a><!-- doxytag: member="PyZy::InputContext::Observer::preeditTextChanged" ref="abddbbbf9e8a7cbc5e4c6ee0a44ec2b81" args="(InputContext *context)=0" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classPyZy_1_1InputContext_1_1Observer.html#abddbbbf9e8a7cbc5e4c6ee0a44ec2b81">PyZy::InputContext::Observer::preeditTextChanged</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classPyZy_1_1InputContext.html">InputContext</a> *&#160;</td>
          <td class="paramname"><em>context</em></td><td>)</td>
          <td><code> [pure virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Notifies preedit text is changed. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td><a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> instance which triggered this method.</td></tr>
  </table>
  </dd>
</dl>
<p>This method is triggered by <a class="el" href="classPyZy_1_1InputContext.html" title="Pinyin / Bopomofo conversion class.">InputContext</a> when preedit text is changed. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/hsumita/pyzy/src/<a class="el" href="InputContext_8h_source.html">InputContext.h</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Aug 1 2012 16:45:23 for pyzy by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
